<html lang="en">
<head th:replace="/views/mobile/live/partials/head"></head>
<title th:inline="text">[[${channel.topic}]]</title>
<body>
    <header th:replace="/views/mobile/live/partials/header"></header>
    <div th:replace="/views/mobile/live/partials/liveWrapper"></div>
    <div th:replace="/views/mobile/live/partials/replay"></div>
    <div th:replace="/views/mobile/live/partials/share"></div>
    <div th:replace="/views/mobile/live/partials/subscription"></div>
    <div th:replace="/views/mobile/live/partials/panel"></div>

    <input id="channelId_hidden" th:attr="channelid=${channel.id}" style="display:none" />
    <input id="userId_hidden" th:attr="userId=${#httpSession.getAttribute('profile.login').id}" style="display:none" />
    <input id="userName_hidden" th:attr="userName=${#httpSession.getAttribute('profile.login').name}" style="display:none" />
    <input id="role_hidden" th:attr="role=${null==role ? 'null' : role}" style="display:none" />
    <input id="channelTopic_hidden" th:attr="topic=${channel.topic}" style="display:none" />
    <input id="channelDesc_hidden" th:attr="desc=${channel.description}" style="display:none" />
    <input id="channelCover_hidden" th:attr="cover=${channel.coverImage}" style="display:none" />
    <input id="avatar_hidden" th:attr="avatarSrc=@{${#httpSession.getAttribute('profile.login').avatar}}" style="display:none" />
    <input id="subcribe" type="hidden" th:value="${isSubscribe}" th:if="${isSubscribe!=null}"/>
    <div style="display:none">
    	 <form id="liveMsgJSON" name="liveMsgJSON" action="/faxsun-info/api/v1/live/post" method="post">
            <input name="channelId" style="display:none" th:attr="value=${channel.id}"/>
            <input name="user.id"  style="display:none" th:attr="value=${#httpSession.getAttribute('profile.login').id}"/>
            <input name="content.text" id="textArea" />
            <input type='submit' value="submit" id="live_form_submit" style="display:none"/>
        </form>
    </div>
</body>

<script type="text/javascript">
   $(loaded);
</script>

</html>